<%@ page language="java"%>
<%@page import="java.util.ArrayList"%>
<%@page import="blancosMikel.controller.beans.directorioBeans"%>
<%@page import="blancosMikel.controller.beans.estadosBeans"%>
<%@page import="blancosMikel.controller.beans.informativaBeans"%>
<%
	informativaBeans info = (informativaBeans) request.getAttribute("infoBean");
	ArrayList<directorioBeans> agenda = (ArrayList) request.getAttribute("agenda");
	ArrayList<estadosBeans> lista = (ArrayList) request.getAttribute("edoLIST");
%>
<html>
<head>
<!--IMPORTANTO ESTILOS-->
<link rel="stylesheet" href="CSS/sigaabm.css" type="text/css" />
<link rel="stylesheet" href="CSS/efectos.css" type="text/css" />
<!--IMPORTANTO JS PARA EFECTOS Y FUNCIONES DE VALIDACION-->
<SCRIPT type=text/javascript src="JS/deslizamiento.js"></SCRIPT>
<SCRIPT type=text/javascript src="JS/slider.js"></SCRIPT>
<SCRIPT type=text/javascript src="JS/lavalamp.js"></SCRIPT>
<SCRIPT type=text/javascript src="JS/login.js"></SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>BLANCOS MIKEL</title>
</head>
<body>
	<form id="home" action="blancosMikel" method="post">
		<input type="hidden" name="dispatch" value="0" />
	</form>
	<form id="Acceder" action="blancosMikel" method="post">
		<input type="hidden" name="dispatch" value="1" />
	</form>
	<!--CABECERA-MENU-->
	<div class="menu" align="right">
		<table width="100%">
			<td align="left" style="color: white">Sistema Informatico de
				Gestion Avanzada Administrativa de Blancos Mikel</td>
			<td width="80"><a href="javascript:;"
				onclick="document.getElementById('home').submit();">Home<b
					style="color: #ADFF2F"> | </b></a></td>
			<td width="80"><a href="javascript:;"
				onclick="document.getElementById('Acceder').submit();">Acceder<b
					style="color: #ADFF2F"> | </b></a></td>
		</table>
	</div>
	<center>
		<div class="body">
			<table>
				<tr>
					<td><img src="IMG/logo.PNG" width="330" height="160" /><br>
						<p>
							Para Blancos Mikel tu opinion es muy importante!.. <br /> <br />
							<b>Direccion</b>:
							<%
								out.println(info.getDireccion());
							%><br />
						<table>
							<tr>
								<td>Telefono:</td>
								<td></td>
							</tr>

							<%
								if (agenda.isEmpty()) {
									out.println("No ay ningun numero telefonico por ahora");
								} else {
									for (directorioBeans bean : agenda) {
										out.println("<tr>");
										out.println("<td></td>");
										out.println("<td>");
										out.println(bean.getNumero());
										out.println("</td>");
										out.println("</tr>");
									}
								}
							%>
						</table>
						<p>
							<br> <img src="IMG/direccionBM.png" width="450" height="450" /></td>
					<td><img src="IMG/Formularios/im_contacto.jpg" width="350"
						height="350" /><br> TODOS LOS CAMPOS CON * SON
						OBLIGATORIOS..
						<form action="email" method="post"
							onSubmit="return validarMail(this)" name="comentario">
							<table>
								<tr>
									<td width="129" align="right"><label><b>*
												--Nombre</b></label></td>
									<td width="294" align="left"><input name="nombre"
										style="width: 300px" type="text" class="datos"></td>
								</tr>
								<tr>
									<td align="right"><label><b>* --E-mail</b></label></td>
									<td align="left"><input name="mail" type="text"
										onfocus="this.select()" style="width: 300px" class="secreta"></td>
								</tr>
								<tr>
									<td align="right"><label><b>Estado</b></label></td>
									<td align="left"><select name="estado"
										style="width: 300px; color: #000033; font-weight: bold;">
											<option>--Queretaro--
												<%
												for (int i = 0; i < lista.size(); i++) {
													out.println("<option value='" + lista.get(i).getNombre() + "'>"
															+ lista.get(i).getNombre());
												}
											%>
											
									</select></td>
								</tr>
								<tr>
									<td align="right"><label><b>* --Comentario</b></label></td>
									<td align="left"><textarea name="comentario" cols="35"
											rows="10" class="datos"></textarea></td>
								</tr>
								<tr>
									<td height="51"><input value="Enviar" type="submit"
										class="form-enviar"></td>
									<td><input value="Cancelar" type="reset"
										class="form-reset"></td>
								</tr>
							</table>
							<br /> <b>Email</b>:
							<%
 	out.println(info.getMail());
 %><br />
						</form> <%
 	if (request.getAttribute("Message") != null) {
 %> <%=request.getAttribute("Message")%> <%
 	}
 %></td>
				</tr>
			</table>
		</div>
	</center>
	<div class="cabFinal" align="center">
		<h4>
			<%
				out.println(info.getCopy());
			%>
		</h4>
	</div>
</body>
</html>